//
//  WoDeShouRu.m
//  EJLX
//
//  Created by xufei on 15/12/4.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "WoDeShouRu.h"
#import "TwoWoDeShouRu.h"
@implementation WoDeShouRu
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        _banlance=[userDic[@"banlance"]intValue];
         _acc_balance=[userDic[@"acc_balance"]intValue];
         _acc_shop_balance=[userDic[@"acc_shop_balance"]intValue];
         _acc_o2o_balance=[userDic[@"acc_o2o_balance"]intValue];
        _acc_profit_balance=[userDic[@"acc_profit_balance"]intValue];
        
        _listAry=[NSMutableArray array];
        NSMutableArray*ary=userDic[@"list"];
        if (ary.count>0)
        {
            for (int i=0;i<ary.count; i++)
            {
                TwoWoDeShouRu*wod=[TwoWoDeShouRu userWithDictionary:ary[i]];
                [_listAry addObject:wod];
            }
        }
        
        
        
    }
    return self;
}

@end
